import {hrAjax as proFetch} from 'src/hrpub/common/utils/utils';

export default function initNewInfo() {
    const {orgVal, form} = this.props;

    let postData = {
        pk_org: orgVal && orgVal.refpk
    };

    return proFetch({
        url: '/nccloud/hrtrn/partrds/PartRdsAddInitAction.do',
        body: postData,
    })
        .then((res) => {
            if (res.success) {
                form.setAllFormValue({'parttime': res.data.parttime});
            }
        });
}
